﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace E2_WEBSITE.Code.HDD
{
    public class HDDController
    {
        public List<string> GetListMemoryByManufacture(string sManufacture)
        {
            HDDDataAccess hda = new HDDDataAccess();
            return hda.GetListMemoryByManufactureName(sManufacture);
        }

        public List<string> GetListStandardByManufactureAndMemory(string sManufacture,string sMemory)
        {
            HDDDataAccess hda = new HDDDataAccess();
            return hda.GetListStandardByManufactureAndMemory(sManufacture, sMemory);
        }

        public List<string> GetListRoundByManuAndMemoryAndStandard(string sManufacture,string sMemory,string sStandard)
        {
            HDDDataAccess hda = new HDDDataAccess();
            return hda.GetListRoundByManufactureAndMemoryAndStandard(sManufacture, sMemory, sStandard);
        }

        public List<string> GetListProductByManuAndMemoryAndStandardAndRound(string sManufacture,string sMemory,string sStandard,string sRound)
        {
            HDDDataAccess hda = new HDDDataAccess();
            return hda.GetListProductByManuAndMemoryAndStandardAndRound(sManufacture, sMemory, sStandard, sRound);
        }

        public int GetHDDIdByManuAndMemoryAndStandardAndRoundAndName(string sManufacture,string sMemory,string sStandard,string sRound,string sName)
        {
            HDDDataAccess hda = new HDDDataAccess();
            return hda.GetHDDID(sManufacture, sMemory, sStandard, sRound, sName);
        }
    }
}
